package com.liangsong.designpattern.chain;

public class Master extends Approver{
    public Master(String name, Approver nextApprover) {
        super(name, nextApprover);
    }

    @Override
    public void Approve(LeaveRequest leaveRequest) {
        leaveRequest.setStatus(true);
        System.out.println("校长:"+getName()+" Approve "+leaveRequest.getRequestName()+leaveRequest.getDays()+"天的请求");
    }
}
